<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>发文登记</title>
<script>
	function changeSentDepName() {
		var url = "<c:url value='/account/api/department.action'/>";
		var obj = new Object();
		mm = window
				.showModalDialog(
						url,
						obj,
						'dialogHeight:500px;dialogWidth:780px;status:no;toolbar:no;resizable:no;menubar:no;location:no;scrollbars:no;dialogLeft:'
								+ (screen.width / 2.0 - 150) + ',dialogTop:170')
		if (mm != null) {
			$("input[name='sentDepartment.id']").val(mm.id);
			$("input[name='sentDepartment.depName']").val(mm.depName);
		}
	}

	function changeTakeDepName() {
		var url = "<c:url value='/account/api/department.action'/>";
		var obj = new Object();
		mm = window
				.showModalDialog(
						url,
						obj,
						'dialogHeight:500px;dialogWidth:780px;status:no;toolbar:no;resizable:no;menubar:no;location:no;scrollbars:no;dialogLeft:'
								+ (screen.width / 2.0 - 150) + ',dialogTop:170')
		if (mm != null) {
			$("input[name='takeDepartment.id']").val(mm.id);
			$("input[name='takeDepartment.depName']").val(mm.depName);
		}
	}
</script>
</head>
<body>
	<h1>审核发文</h1>
	<form action="convey_art!submit1.action" id="convey" method="post"
		class="yform">
		<input type="hidden" name="id" value="${id }" /> <input type="hidden"
			name="taskId" value="${taskId }" id="taskId" />
		<table class="noborder">
			<tr class="type-text">
				<td>发文字号</td>
				<td><input type="text" name="num" value="${num }" readonly="readonly"/></td>
			</tr>
			<tr class="type-text">
				<td>发文标题</td>
				<td><input type="text" name="title" value="${title }" readonly="readonly"/>
				</td>
			</tr>
			<tr class="type-text">
				<td>主题词</td>
				<td><input type="text" name="keywords" value="${keywords }" readonly="readonly"/>
				</td>
			</tr>
			<tr class="type-text">
				<td>公文来源</td>
				<td><input type="text" name="source" value="${source }" readonly="readonly"/>
				</td>
			</tr>
			<tr class="type-text">
				<td>发文部门</td>
				<td><input type="text" name="sentDepartment.depName"
					value="${sentDepartment.depName }" readonly="readonly"/></td>
			</tr>
			<tr class="type-text">
				<td>接收部门</td>
				<td><input type="text" name="takeDepartment.depName"
					value="${takeDepartment.depName }" readonly="readonly"/>
				</td>
			</tr>
			<tr class="type-text">
				<td>内容简介</td>
				<td><textarea cols="112" rows="3" name="content"
						readonly="readonly">${content }</textarea>
				</td>
			</tr>
			<tr class="type-text">
				<td>备注</td>
				<td><textarea cols="112" rows="3" id="remark" name="remark"
						readonly="readonly">${remark }</textarea>
				</td>
			</tr>
			<tr class="type-text">
				<td>附件</td>
				<td colspan="3"><input type="file" id="annex" name="annex"
					value="${annex }" />
				</td>
			</tr>
			<tr class="type-text">
				<td>是否需要修改</td>
				<td><select id="modify" name="modify">
						<option value="to 拟办文件">不需要</option>
						<option value="to 发文登记">需要</option>
				</select>
				</td>
			</tr>
			<tr>
				<td>
					<div class="type-button">
						<security:authorize ifAnyGranted="ROLE_修改用户">
							<input   type="submit" class="submit" value="保存" />&nbsp;
					</security:authorize>
						<input   type="button" value="返回" class="reset"
							onclick="history.back()" />
					</div>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>